<?php
// instanciando o objeto smarty 
require_once('smarty/libs/Smarty.class.php');

class SmartyInclude {
    public static function getSmarty() {
        $smarty = new Smarty();

        // habilitando o debug
        $smarty->debugging = false;

        // definindo o cach
        $smarty->caching = false;
        $smarty->cache_lifetime = 1;

        // diretórios
        $smarty->template_dir = "templates";
        $smarty->compile_dir = "smarty/templates_c";
        $smarty->config_dir = "smarty/configs";
        $smarty->cache_dir = "smarty/cache";
        
        return $smarty;
    }
}
?>
